package com.dailycodebuffer.springbootmongodb.collection;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Builder;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * (Customer)实体类
 *
 * @author makejava
 * @since 2025-01-04 00:23:42
 */
@Data
@Builder
@Document(collection = "customer")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class Customer implements Serializable {
    private static final long serialVersionUID = -66041935299369250L;

    @Id
    private Integer id;

    private String name;

    private String contact;

    private String province;

    private String city;

    private String address;

    private String region;

    private String phone;
}

